// pages/accounputForward/accounputForward.js
const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    userInfo:[]
  },



  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    var that = this;
    that.getInfo();
  },

  
  //获取账户余额
  getInfo() {
    var that = this;
    app.ajax({
      url: 'Salesman/Login/getInfo',
      data: {},
      success: function (res) {
        // console.log(res)
        if (res.data.code == 1000) {
          that.setData({
            userInfo: res.data.data
          })
        }
      }
    });
  },
})